package com.xxgc.zde;

import com.baomidou.mybatisplus.core.toolkit.AES;

public class TestPass {
    public static void main(String[] args) {
        String randomKey="0123456789123456";


        String url="jdbc:mysql://localhost:3306/zde?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC";
        String username="root";
        String password="123456";


        String encryptedDataUrl = AES.encrypt(url, randomKey);
        String encryptedDataUserName = AES.encrypt(username, randomKey);
        String encryptedDataPassWord = AES.encrypt(password, randomKey);


        System.out.println("encryptedDataUrl="+encryptedDataUrl);
        System.out.println("encryptedDataUserName="+encryptedDataUserName);
        System.out.println("encryptedDataPassWord="+encryptedDataPassWord);
    }
}
